package test;

import anaydis.sort.gui.SorterListener;

public class Benchmark implements SorterListener {
    int swaps, comparisons;

    public Benchmark(){
        swaps=0;
        comparisons = 0;
    }

    public void greater(int i, int i1) {
        comparisons++;    }

    public void equals(int i, int i1) {
        comparisons++;    }

    public void swap(int i, int i1) {
        swaps++;
    }

    public void box(int i, int i1) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public void copy(int i, int i1, boolean b) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public int getComparisons() {
        return comparisons;
    }

    public int getSwaps() {
        return swaps;
    }
}
